package com.xmut.mall.search.service.impl;

import com.xmut.mall.search.feign.WareFeignClient;
import com.xmut.mall.search.service.WareLockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class WareLockServiceImpl implements WareLockService {

    @Autowired
    private WareFeignClient wareFeignClient;

    @Override
    public void unLockStock(Map<String, Object> param) {
        System.out.println("远程调用解锁库存");
        wareFeignClient.unLockStock(param);
    }
}
